package org.huntaway.kindergarten.test;

import org.huntaway.hibernate.SessionManager;
import org.huntaway.kindergarten.po.SysDict;

public class BaseKindergarten<T extends SysDict> {
	protected T saveDefaultDict(SessionManager dateManage,T ddYear, 
			T dictPar, String code, String name) {
		if (dictPar != null) {
			ddYear.setSysdic(dictPar);
		}
		ddYear.setTCode(code);
		ddYear.setTName(name);
		dateManage.save(ddYear);
		return ddYear;
	}
}
